//
//  SingleTon.m
//  BabyTeacher
//
//  Created by jiangao on 15/9/10.
//  Copyright (c) 2015年 jiangao. All rights reserved.
//

#import "SingleTon.h"


@implementation SingleTon

static SingleTon* sharedInstance = nil;

+(SingleTon *)sharedInstance{
    if(sharedInstance == nil){
        sharedInstance = [[super allocWithZone:NULL] init];
    }
    return sharedInstance;
}


- (id)init
{
    if (self = [super init])
    {
        NSMutableDictionary *header = [[NSMutableDictionary alloc] init];
        [header setValue:@"text/xml; charset=utf-8" forKey:@"Content-Type"];
        
        self.engine = [[MKNetworkEngine alloc] initWithHostName:InitHostName customHeaderFields:header];
        
    }
    return self;
}

- (void)dealloc
{

    self.engine = nil;
}

@end
